package com.jh3502.helper.function.home;

import android.content.Context;

import com.jh3502.helper.base.BaseJson;
import com.jh3502.helper.base.BaseModel;
import com.jh3502.helper.net.ApiClient;

import retrofit2.Callback;

/**
 * @author harisucici
 * @date 2017/6/19
 */

public class HomeModel extends BaseModel {

    public HomeModel(Context context) {

        super(context);
    }


    // 更新量体数据
    public void listltrule(Callback<BaseJson> callback) {
        mCall = ApiClient.apiList.listltrule();
        mCall.enqueue(callback);
    }

    // 更新量体数据
    public void ltShapeRule(Callback<BaseJson> callback) {
        mCall = ApiClient.apiList.ltShapeRule();
        mCall.enqueue(callback);
    }

    // 特体
    public void getteti(Callback<BaseJson> callback) {
        mCall = ApiClient.apiList.getteti();
        mCall.enqueue(callback);
    }

    // 更新
    public void version(Callback<BaseJson> callback) {
        mCall = ApiClient.apiList.version();
        mCall.enqueue(callback);
    }


}
